package com.kkyy.findmusic.dao;

import com.kkyy.findmusic.entity.BannersEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface BannersDao extends BaseMapper<BannersEntity> {
    void updateBannerStatus(Integer id);

    List<BannersEntity> selectByStatus();

    void addBannerUrl(String url);

    List<BannersEntity> getBannerByLimit(@Param("startPage") Integer startPage, @Param("pageSize") Integer pageSize);
}